package cn.wsn2018.tools.model.Log;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
/**
 * 业务日志
 * */
@Document(collection = "logsInfo")
public class LogsInfo implements Serializable {
    @Id
    private String id;
    private String username;
    private String createTime;
    private String type;
    private String operateInfo;
    private String result;
    private Integer eventType;
    private String other;

    public LogsInfo() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getOperateInfo() {
        return operateInfo;
    }

    public void setOperateInfo(String operateInfo) {
        this.operateInfo = operateInfo;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public Integer getEventType() {
        return eventType;
    }

    public void setEventType(Integer eventType) {
        this.eventType = eventType;
    }

    @Override
    public String toString() {
        return "LogsInfo{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", createTime='" + createTime + '\'' +
                ", type='" + type + '\'' +
                ", operateInfo='" + operateInfo + '\'' +
                ", result='" + result + '\'' +
                ", eventType='" + eventType + '\'' +
                ", other='" + other + '\'' +
                '}';
    }
}
